package com.framework.loippi.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 反馈
 * 
 * @author Loippi Team
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_JW_FEEDBACK")
@ApiModel(value = "反馈的对象")
public class Feedback implements GenericEntity {

	private static final long serialVersionUID = -7858510769631291729L;

	/** ID */
	@Column(id = true, name = "ID", updatable = false)
	@ApiModelProperty(value = "ID")
	private Long id;
	
	/** 用户id */
	@Column(name = "userId")
	@ApiModelProperty(value = "用户Id", required = true)
	private Long userId;

	/** 创建日期 */
	@Column(name = "CREATE_DATE")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createDate;
	
	/** 回复时间 */
	@Column(name = "replyTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "回复时间")
	private Date replyTime;

	/** 手机号 */
	@Column(name = "MOBILE")
	@ApiModelProperty(value = "手机号")
	private String mobile;
	/** 用户姓名 */
	@Column(name = "userName")
	@ApiModelProperty(value = "用户姓名")
	private String userName;
	/** 回复内容 */
	@Column(name = "replyContent")
	@ApiModelProperty(value = "回复内容", required = true)
	private String replyContent;
	/** 1-已处理 */
	@Column(name = "status")
	@ApiModelProperty(value = "1-已处理")
	private Integer status;

	/** 内容 */
	@Column(name = "CONTENT")
	@ApiModelProperty(value = "内容", required = true)
	private String content;

	/** IP */
	@Column(name = "IP")
	@ApiModelProperty(value = "IP")
	private String ip;
	
	/**
	 * 角色
	 */
	@Column(name = "role")
	@ApiModelProperty(value = "角色")
	private String role;
	/**
	 * 处理人id
	 */
	@Column(name = "handler_id")
	@ApiModelProperty(value = "处理人id")
	private Long handlerId;
	/**
	 * 处理人名称
	 */
	@Column(name = "handler_name")
	@ApiModelProperty(value = "处理人名称")
	private String handlerName;
	@Column(name = "handler_account")
	/**处理人账号 */
	@ApiModelProperty(value = "处理人账号")
	private String handlerAccount;
}
